Thread safe changes for CaloGeometry and dependent packages

Please find thread safe changes for CaloGeometry. Due to the change of internal member data (m_validIds) into a method, I modified dependent packages which used this member data directly. I did not modified HcalDDDGeometry class though based on discussion with package maintainers (Ianna).