https://fedorahosted.org/389/ticket/48406
https://fedorahosted.org/389/attachment/ticket/48406/0002-Ticket-48406-Av...
git patch file (master; take 2) -- using thread data for managing the
lock on conn->c_mutex to make it reentrant
Thanks to Rich and Mark for their advices!