Sylvain Guintoli has closed the gap on Tom Sykes at the top of the World Superbikes Championships after victory in race one at the Magny-Cours in France.