(ITS#8780) Plug a socket leak in ldap_new_connection made by unsuccessful connection attempts