make  PolyFit3DParametrizedMagneticField thread Safe