Please review: Ticket #348 - crash in ldap_initialize with multiple threads