Follow up to r1884098: Fix synchronization in thread_pool_cleanup(). Ask each thread to signal its task completion individually when being waited in wait_on_busy_threads(), and ignore threads that have already finished their task (elt->current_owner == NULL).