Double reflection of capillary/gravity waves by a non-uniform current: a boundary-layer theory