JCR-2452: DefaultPrincipalProvider#collectGroupMembership puts wrong principal instance into the cache