Add lock around Settings file in LogStreamManager
Fixes #696