Add mutex around maps in settings.go