[libvirt] [PATCH v3 16/18] qemu: Factor out qemuDomainSnapshotValidate() helper