Suboptimal Safety-Critical Control for Continuous Systems Using Prediction–Correction Online Optimization