Fixed a bug in ThreadUtility::_maxDepthOfThread()