[RFC PATCH 23/33] vfio: selftests: Move helper to get cdev path to libvfio