Frequency comb generation through the locking of domain walls in doubly resonant dispersive optical parametric oscillators