XWIKI-10031: When a LDAP subgroup is listed as UID it's not expanded

(cherry picked from commit 79eddacd185417ed30e55bdc6ba518f4af3a39a6)