Moto3™ rookie Khairul Pawi put on a master class of wet-weather riding to take his 2nd win of the season ahead of Locatelli and Bastianini.