Fix obstack use-after-free problems in C frontend, PR69522