fixed ThreadedGame creating lock inside state