Fix integer overflow for ThreadCPUTimeDiff