Deadly unrest on France’s far-flung Pacific territory of New Caledonia has drawn a hasty visit by President Emmanuel Macron.