Fix to LDAP group sync in userslib.php

https://dev.tiki.org/item4284