Revert r1130186: PR51307: Fix ldap_rebind build error when ldap is enabled and APR is built without threads.