[libvirt] [PATCH] API: Share code between virConnectOpen functions