(ITS#6673) ldap_unbind() hangs on unreachable LDAP server when using TLS