This fixes a regression introduced in 2b4fa5348e that caused us to emit shutdown-time destruction for variables with ARC ownership, using C++-specific functions that don't exist in C implementations.
2b4fa5348e