OpenMP and Mutex

I use Openmp with ROOT. Intel Inspector XE shows that there is data race in TStorage.h file:
AddToHeap function
86 if (end > fgHeapEnd) fgHeapEnd = end; }

The reason is clear but there is actually thread lock before
AddToHeap calling in TStorage.cxx:
326 R__LOCKGUARD(gGlobalMutex);

Does global mutex lock really work when I use OpenMP?

Thank you. With best wishes, Konstantin.


The Mutex used in ROOT are activated if and only at least one TThread object has been created (even if you do not use it afterward).