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