create scheduler event lock in scheduler_task, not in enqueue events