[PATCH 5.0 231/346] rtc: xgene: fix possible race condition