[PATCH 6.6 025/568] pwm: atmel-tcb: Fix race condition and convert to guards