libpcp/AF.c - fix lock initialization race
libpcp/AF.c - fix lock initialization race

Sometimes seen in qa/134 (and others), a pmlogger -c /dev/null -L would
hang and not allow pmlc to connect.

Tracked down to a nested __pmInitLocks() call because the timer alarm
went off in the middle of setting up.  This fix forces __pmInitLocks()
to be called early on when the __pmAF* routines are called.

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