Properly remove terminated thread from ready queue.

If we change the priority first, we'll remove from the wrong priority level, oops.  Gotta change afterward.

Should improve [Darkstalkers Chronicle: The Chaos Tower] (http://forums.ppsspp.org/showthread.php?tid=1271).

@sum2012 thanks for all the help debugging this one.

-[Unknown]