[libvirt PATCH v2 21/31] qemu_snapshot: refactor validation of snapshot delete