This patch fixes the unintentional data race in firstprivate
implementation. There is a Read-Write race when one thread tries
to copy the value inside the omp.parallel region while other
thread modifies it from inside the region (using pointers or
some other form of indirect access).
For detailed discussion please refer to discourse.
Can we move this to the above if condition where copyHostAssociateVar is called? After the function call, we can create this barrier operation.