Mountain waves produced by a stratified shear flow with a boundary layer. Part III: Trapped lee waves and horizontal momentum transport