Fix race condition for outputting the last set of instrumentation results.