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