Dynamical decoupling of laser phase noise in compound atomic clocks