Fix __pmConnectLogger() access control bug for the "local:[path]".
Fix __pmConnectLogger() access control bug for the "local:[path]".

When pmlc uses local:[path] is specified, __pmConnectLogger()
should attempt connection as "unix:[path]" and, if this fails,
it should try again as "localhost".

This was working ok for the case when connection via unix:
could not be established. However when the connection was established
but terminated due to insufficient access control permissions,
__pmConnectLogger() did not go on to try connecting as "localhost".

Also, -ECONNREFUSED was being returned in this case instead of -EPERM.

andyvand/cygpcpfans,andyvand/cygpcpfans,andyvand/cygpcpfans,edwardt/pcp,adfernandes/pcp,tjanez/pcp,aeg-aeg/pcpfans,adfernandes/pcp,andyvand/cygpcpfans,adfernandes/pcp,edwardt/pcp,tjanez/pcp,edwardt/pcp,edwardt/pcp,prasincs/pcp,wuliming/pcp,tjanez/pcp,prasincs/pcp,mbaldessari/pcp,aeg-aeg/pcpfans,mbaldessari/pcp,wuliming/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,aeg-aeg/pcpfans,andyvand/cygpcpfans,adfernandes/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,mbaldessari/pcp,aeg-aeg/pcpfans,wuliming/pcp,prasincs/pcp,aeg-aeg/pcpfans,mbaldessari/pcp,tjanez/pcp,mbaldessari/pcp,wuliming/pcp,andyvand/cygpcpfans,tjanez/pcp,prasincs/pcp,prasincs/pcp,tjanez/pcp,tjanez/pcp,adfernandes/pcp,adfernandes/pcp,edwardt/pcp,prasincs/pcp,andyvand/cygpcpfans,tjanez/pcp,andyvand/cygpcpfans,wuliming/pcp,edwardt/pcp,mbaldessari/pcp,edwardt/pcp,wuliming/pcp,aeg-aeg/pcpfans,prasincs/pcp,edwardt/pcp,prasincs/pcp,adfernandes/pcp