openldap: use ldap_unbind_ext_s() to avoid memory leak