Partial Differential Equations With Gradient Constraints Arising In The Optimal Control Of Singular Stochastic Processes