A Uniform-grid Discretization Algorithm for Stochastic Control with Risk Constraints