sched: Implement a SCHED_BUG() that prints more information
Bug such as legacy/trac#23751 (moved) and legacy/trac#23676 (moved) are very difficult to diagnose or reproduce so once we hit a BUG(), we should try to extract as much information as we can from the channel and state of the scheduler.
Thus I propose SCHED_BUG()
.