Fix compilation warnings against ROOT6

Hide the thread safety attributes from rootcling.  This fixes many compilation warnings against ROOT6.