trq-2643 it appears that getaddrinfo is not threadsafe so I am putting mutex around the main call to it from pbs_getaddrinfo.