As per @hyc, call ldap_initialize once, before spawning threads to prevent initialisation race