[libvirt PATCH v4 06/11] remote: split out function for constructing socket path