C++ cleanups.
Added some missing thread_local specifiers.
Removing some unnecessary thread_local specifiers on variables.
Corrected the CDepParser construction to be inside the threads.