OpenMP: fix race condition

44 jobs for !2625 with fix-openmp-segfaul in 63 minutes and 32 seconds (queued for 1 second)
latest merge request