Need to recheck the pool->curls count on regaining the pool lock after the pthread conditional wait returns.