Toyota claimed pole position for Sunday's FIA World Endurance Championship finale in China by exactly one tenth of a second.