ITS#9181 fix ldap_pvt_thread_mutex_t used before its definition

1 job for master in 23 minutes and 46 seconds (queued for 24 minutes and 16 seconds)