Fixed a read-write race condition found by thread sanitizer
Previosuly, the checkAbortInterval's was declared outside the vtkSMPTools::For() and so one thread could write to checkAbortInterval while another was reading from it.
My solution was to just make another temporary variable that is inside the vtkSMPTools::For().
Backport: release
Edited by Mathieu Westphal (Kitware)