[PATCH 4.14 084/166] rtc: ds1374: fix possible race condition