Existence and Lipschitz regularity of solutions to Bolza problems in optimal control