Slow Passage Through a Saddle-Node Bifurcation: A Unified Framework for Stochastic Thermodynamics and Learning Generalization Singularities | Synapse