The Del Conca Gresini rider took his second win of the season, edging him into Championship contention with his teammate