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