[libvirt] [PATCH v4] qemu: Unlink the managed state only if restoring succeeded