ldap-client.patch: Remove part that deals with nested functions

We don't need to avoid nested functions anymore. Moreover, the patch got
out of sync with code in master.