[libvirt PATCH v3 06/10] remote: split out function for constructing socket path