[libvirt] [PATCH v3 18/24] qemu: Refactor qemuMigrationWaitForCompletion