testbench: thread: add del_thread(), cleanups
testbench: thread: add test ``scheduler_id_validity''
thread: add resolve_tid_spec(), use it to handle scheduler in ThreadControl

It should be used to resolve all other TID specs, actually, but for now only
ExchangeRegisters @dest, and ThreadControl @scheduler are covered.
thread: assorted cleanups