add Runtime.isWaitingThread
add Runtime.isWaitingThread

Add a Runtime Thread helper to check if a thread is in a state where it
will not change at least until next frame. This includes any state
where the thread is done, as that will not change either.

LLK/scratch-vm,LLK/scratch-vm,LLK/scratch-vm