* Lock the mutex before checking for the amount of tasks in `enableTask` and `disableTask` * Lock the scheduler prior to starting it, to avoid populating the agenda more than one time