WIP: Resolve "some configuration related functions should throw exception if called from packet processing functions or while processing packets (in MT)"
requested to merge 1137-some-functions-should-throw-exception-if-called-while-thread-pool-running into master