[iphb] Make RTC power on reliable. Contributes to JB#50354
Currently iphb module uses plain RTC writes combined with one of time APIs without much consideration.
Queued timers have quite big chance of overwriting RTC value as well as vice versa. Especially this plays bad with power on timer which is set upon DSME shutdown which should power on the device. When it is overwritten by suspend timer we have all kinds of bad luck.
- Prevents using RTC writes for suspend timers when one of timer queue APIs are available.
- Makes sure to close all timer queue APIs file descriptors to flush the state before shutdown timer write.
Signed-off-by: Sergey Lapin firstname.lastname@example.org