scheduler: Send reschedule ICI after enqueueing the thread
scheduler_set_thread_priority: Fix null dereference