REWORK accorting to task

mutexes and ticket's variables are global now