Detach all task threads.
Detach all task threads.

This results in valgrind complaining about pthread leaks because the
process is terminating before the thread(s) get cleaned up, but we're
not really leaking anything afaict.

thomaslee/nim,thomaslee/nim,thomaslee/nim,thomaslee/nim,thomaslee/nim