Added a missing task_done() in the ThreadPool

Ensures to release the join() method when calling stop()