[libvirt] [PATCHv2 12/13] list: new helper function to collect snapshots