Fix timing of fan control when using FAN_SOFT_PWM.
Make sure the fan speed is changed when it's supposed to be, not when the g-code is processed.