THRIFT-2872 Fix dead lock when all tasks are expired

If manager_->removeExpiredTasks() cleared all tasks, we didn't notify
those who are waiting for maxMonitor_. This patch fixes it.
1 file changed