[OpenMP] Miscellaneous small code improvements (#95603)

Removes a few uninitialized variables, possible resource leaks, and
redundant code.

GitOrigin-RevId: 598970904736f3535939f6a5525022219e4ae517
9 files changed