[libvirt] [PATCH 5/7] qemu: hotplug: Extract code for waiting for tray eject