Laminar-turbulent transition in a bayonet tube