[PATCH 6.10 037/809] pwm: atmel-tcb: Fix race condition and convert to guards