A Level-Set Approach for Stochastic Optimal Control Problems under Controlled-Loss Constraints