Effect of the dynamic core-electron polarization of CO molecules on high-order harmonic generation