Thread safety fix for PolyFit2DParametrizedMagneticField.cc

made couple of functions consts to avoid thread-safety issue Non-const member function could modify member data object.