Fix clang warnings in FWCore/MessageLogger.

Note that 'thread_safe' attribute only applies to functions and it's therefore ignored when applied to variables.