[libvirt] [PATCH] test: Avoid use-after-free on virDomainSnapshotDelete