#19 Fix the Windows race condition in the measurement file by using one file per thread.

See #19