[WIP] fix retrieval of group members and cache group members

replaces https://github.com/owncloud/core/pull/11161

Needed LDAP adjustement for #9225 (to fix #10513), also requires #10527 .