Currently there are some platform specific bugs with deep suspend and inspecific x86 platforms, which causes wakeup event during suspendprocess. This causes it to fallback to s2idle mode.
Limit dark resume mode by reading current mem sleep mode, and if it isnot s2idle, we skip writing wakeup count file.
BUG: 510992(cherry picked from commit e49f9ae7)