Revert "Broke the thread pool with condition variables."

This reverts commit 5644906e64fb4cf46116f5280584547972bf1d77.
Added some stuff for passing args to threads. Not working fully.