Jonathan Rea led from green light to chequered flag in Race 1 of the last round of the World Superbikes season in Qatar.