abb-chargalg: fix bugs of EOC wakeup

1. It shouldn't call abb ponkey when device is awake, or screen will be powered off.
2. Some warnings of waking up thread are fixed.

Signed-off-by: cocafe <cocafehj@gmail.com>