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