C++ fix: Bug fix related to initializing C++ heap when the number of active C++ threads is less than the total requested.