Controlling the onset of turbulence by streamwise traveling waves