Merge branch 'scheduler-redesign'
Only yield when unlocking sch_lock and a thread switch has been deferred.
Merge branch 'master' into scheduler-redesign