Improve settings locking precision

1) Switch to R/W locks for CSettingsManager
2) Add separate section for settings map and other parts of
CSettingsManager
3) Add locking for CSettings
Merge pull request #3512 from t-nelson/settings_lock_precision

settings: improve settings locking precision