Stability of Random Dynamical Systems in Noisy Oscillators with Shear and in Stochastic Gradient Descent