SPARK-2566. Update ShuffleWriteMetrics incrementally