0011172: optimize getGroupmemberships in Principalbackend