[libvirt PATCH v3 14/25] qemu_snapshot: extract external snapshot delete prepare to function