Lyapunov functions in barriers for parabolic equations and in stability problems with respect to “white noise”