A mix-up over tunnels led to the track workers being in an ‘unsafe’ position when the train from Waterloo to Guildford suddenly appeared behind them