[libvirt] API to upgrade read-only connection