Macroeconomic Dynamics and Frequency Locking