multipathd: fix some small bugs for cli socket