Refactor CSimpleFileCache::WaitData, kill race conditions.