Volkswagen's Sebastien Ogier is on course to win the Rally Mexico after his nearest challenger Mads Ostberg was forced to retire.