Reduce calls of ``_idle_semaphore.release()`` in :func:`concurrent.futures.thread._worker`.