kernel: Make thread_block_locked() private
scheduler: Add missing check for real time threads
kernel: Remove Thread::next_state
scheduler: Do not send reschedule ICI when not needed