A priori Lipschitz estimates for solutions of local and nonlocal Hamilton–Jacobi equations with Ornstein–Uhlenbeck operator