[OpenMP][OMPT][NFC] Fix flaky test

The test had a chance to finish the first task before the second task is
created. In this case, the dependences-pair event would not trigger.

GitOrigin-RevId: cdf9401df84ef382467d1ca1c1c458c11fd6043a
1 file changed