[PATCH 4.14 20/33] rtc: pm8xxx: Fix issue in RTC write path