[Git][openldap/openldap][OPENLDAP_REL_ENG_2_6] 8 commits: ITS#9045 rlock only if there may be other threads