unref or join some threads

avoid leaving thread state and stacks on heap after threads exit

I noticed a "thread stack leak", this is my attempt to fix it.

This isn't ready yet, because the watchdog shutdown synchronization isn't quite right yet, and janus hangs for a bit on shutdown (though it eventually completes it). So consider this a RFC and WIP.