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