workqueue: don't clear cwq->thread until it exits