ldap: ws cleanups, test load ldapjs in register,

only register hook if ldapjs loads