[PATCH 4.17 159/336] rtc: tps6586x: fix possible race condition