msyncd: don't query battery state until it's factually needed

this avoids waking up unnecessarily whenever a battery notification is recieved.
Merge pull request #59 from rburchell/master

msyncd: don't query battery state until it's factually needed