Add some useful debugging in threadpool test failure conditions.