[OpenMP] Add sanity check for concurrent taskgraph reset
This patch adds a sanity check for concurrent taskgraph re-recording: the
case where two threads might simultaneously hit a taskgraph region with
the same graph_id and a non-zero graph_reset clause. If the situation
is encountered, a fatal runtime error is raised.
Pull Request: https://github.com/llvm/llvm-project/pull/195076