Add an OpenMP critical section on the MCAPI caching connection system