Onset of two-dimensional cellular flow in finite curved channels of large aspect ratio