Fixed race condition when initializing the logger by making it fully thread-safe
Merge branch 'stable'
Merge branch 'master' into smuxi-master