Quantum correlations close to a square pattern forming instability