Rafael Nadal maintains his stranglehold on the French Open by beating Dominic Thiem in four sets to lift a 12th men’s singles title.