Make access to CAppSettings::cfgCache thread-safe