Fix bug in OOM avoidance for RepoGroup cache.

Change-Id: Ic2e7fb6a9a7207315fd65454d883b84278efafc0
Merge "Fix bug in OOM avoidance for RepoGroup cache."