[clang][OpenMP] Restore CapturedStmtInfo after an IRBuilder taskgroup (#242345)
EmitOMPTaskgroupDirective set CapturedStmtInfo to a local when it was
null, and left it pointing to the local after returning. Found by
-Wlifetime-safety.
Assisted-by: Claude Opus 5.5
The other two fixes are split out into
https://github.com/llvm/llvm-project/pull/242420 and
https://github.com/llvm/llvm-project/pull/242421.
Co-authored-by: Gabor Horvath <gaborh@apple.com>