Avoid busy waiting when no task fits in the available workers.