The Spaniard claimed his second victory of the 2017 season, ahead of teammate Valentino Rossi, and Cal Crutchlow