Only yield when unlocking sch_lock and a thread switch has been deferred.
Changed schedulers interval to improve responsiveness.
Merge branch 'master' into terminal-driver