Calibrating Scientific Foundation Models with Inference-Time Stochastic Attention