[server] RootDir should be not NoLock but Mutex

Configuration is loaded as a result of concurrent operations, so it
should be protected

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
small refactoring

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>