Buckling of a thin-layer Couette flow