Britain’s Geraint Thomas is set to win the Tour de France after maintaining his race lead on the penultimate stage of the race – a 31km time trial.