[libvirt PATCH 5/9] remote: split out function for constructing socket path