[CIR] Add support for global destructors (#162532)
This adds support for generating destructor calls for global variables
that have a destructor. This doesn't handle functions that are marked as
global destructors with `__attribute__((destructor))`. That will be
handled later.