events: Protect access via task_subsys_state_check()