Alex Rins rode an almost perfect race in Le Mans to take his second win of the season ahead of Simone Corsi and Thomas Luthi.