[libvirt] [PATCH 20/22] remote: Refactor remote*Open and remote*Close functions