On the viscous boundary layer of weakly unstable detonations in narrow channels