Fix a crash in `vtkPolyhedron::IsInside` when using multithread execution
This is the continuation of !10733 (closed)
Relates #19182
Fix random crashes in ParaView, especially using the "Resample to Image" filter. This filter calls vtkMath::Random
through the vtkPolyhedron::isInside
method which is not thread safe.
This is a multi-threading concurrency issue, so hard to test in a reliable way unless you run a code X times hoping to crash. So I haven't written any test, but I can do so if required.
Edited by Léon Victor