[Bug 8436] slapadd hang in bdb_tool_entry_close / ldap_pvt_thread_cond_wait