[PATCH v4 15/18] vfio: selftests: Move vfio_selftests_*() helpers into libvfio.c