Adds FOR_SCHEDULER_MAIN_THREAD macro