Get rid of race conditions. Add sync.Mutex to TimedTask.