Socialist on track for win as French campaign closes