Symmetry, sidewalls, and the transition to chaos in baroclinic systems