Synchronization and chaos control in a periodically forced quasi-geostrophic two-layer model of baroclinic instability