[PATCH 4.9 16/21] rtc: pm8xxx: Fix issue in RTC write path