Merge "fix race in ProcessState::getThreadPoolMaxTotalThreadCount" into main