Adding task mutexes, first draft.