Fix a race condition in Cache::Get()