Fix reset glitch in pwmout_write()

Resetting the timer every time the duty cycle is changed causes unwanted glitches to be produced on the output. These glitches manifest as a tone at the update frequency when PWM is used for class D style audio.

NOTE: pwmout_pulsewidth_us() might suffer from the same issue, but I have no way of testing it to make sure.