Fix heart test suite data race.
Fix thread pool test suite data race.