Generic Well-Posedness of Optimal Control Problems without Convexity Assumptions