[libvirt] [PATCHv2 2/6] maint: avoid nested use of virConnect{Ref, Close}