[PATCH -next v2] cred: conditionally declare groups-related functions