Added support for connecting to LDAP servers located using DNS SRV records. Added lock around resolver library which is shared by the DNS SRV code and the getdxbyname() code.