[PATCH v2 23/30] vfio: selftests: Move helper to get cdev path to libvfio