Nonconventional averages along arithmetic progressions and lattice spin systems