Mild solutions to the dynamic programming equation for stochastic optimal control problems