MFC r320990, r321011:libthr: Avoid checking for negative values in usigned count.Check for overflow instead.
MFC r278313:Fully initialize allocated memory for the new barrier.