[OpenMP] Improve performance of ticket lock (x86) (#143557)

Ticket lock has a yield operation (shown below) which degrades
performance on larger server machines due to an unconditional pause
operation.

```
#define KMP_YIELD(cond)                                                        \
  {                                                                            \
    KMP_CPU_PAUSE();                                                           \
    if ((cond) && (KMP_TRY_YIELD))                                             \
      __kmp_yield();                                                           \
  }
```

GitOrigin-RevId: c9fe19a99bf41c165524dcb3e9ff939527b5178b
1 file changed