Interplay between superconductivity and chiral symmetry breaking in a (2+1)-dimensional model with a compactified spatial coordinate