internal mutex for timer_task