Four-time major winner Naomi Osaka goes through in Qatar Open to reach the quarter-finals of a tournament for the first time in almost two years.