CMS-4422 Resolve user memberships during authentication.
Avoid ConcurrentModificationException while resolving memberships.