CxxUtils: Make exctrace properly MT-safe.
Update the exctrace collector to work properly in a MT environment. Change the static variables holding the trace to be thread_local. Further, retrieve the saved trace via calling a function, rather than accessing the variables directly.