Fix global log level being reset in newly created threads.
Merge pull request #781 from kacfengine/global_log_level_fix

Fix global log level being reset in newly created threads.