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.