state fixes

Fix device state changes.

This will fix:
 - killswitch states are not properly updated when flightmode is activated
 - device states are not properly updated in case of an "external" rfkill event coming from the kernel
   (e.g. executing # rfkill block bluetooth)