Attached is the gdb stack trace from the hang state. It looks like the
the threads are stuck in pthread_cond_wait() from send_ldap_ber(). Are
there other relevant variables/structures to inspect for this scenario?

Looking at the source a bit more, this is the line that the threads are
stuck on (line 372 in result.c, in the send_ldap_ber() function):