[libvirt] [PATCH 3/5] snapshot: refactor virsh snapshot parent computation