[libvirt] [PATCH v3 41/48] remote: refactor the code for choosing the UNIX socket path