[PATCH 6.1 028/440] pwm: atmel-tcb: Fix race condition and convert to guards