Thread Pool and Dead Lock