XX-11331:  Added macro to disable thread pool.  Set thread counting sem flag to true.