Fix statics DataFormats/EcalDet

Fixed items found by thread-safety checkers. This includes
-changing 'static' to 'const static' where appropriate
-using std::call_once to safely fill a static array that is only used in a 'const' way after it is filled.