Fix suspend/poweroff apmd bug.