 - Fix an off by one error in sched_pri_range.  - In tdq_choose() only assert that a thread does not have too high a    priority (low value) for the queue we removed it from.  This will catch    bugs in priority elevation.  It's not a serious error for the thread    to have too low a priority as we don't change queues in this case as    an optimization.
 - Fix an off by one error in sched_pri_range.
 - In tdq_choose() only assert that a thread does not have too high a
   priority (low value) for the queue we removed it from.  This will catch
   bugs in priority elevation.  It's not a serious error for the thread
   to have too low a priority as we don't change queues in this case as
   an optimization.

Reported by:	kris

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase