configure microservice app to work with one worker thread only. use threadlocal in the websocketmanager for further changes of critical sections