Championship leader Andrea Dovizioso took victory in a red-flag interupted 125cc race at the Japanese Grand Prix.