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