PRD-4258: Fixed a race-condition in bundle writer that may cause corrupt reports.