Spontaneous chiral symmetry breaking for a U(N) gauge theory on a lattice