fix(daemon): block on the unlock loop finishing before starting reboot loop
Merge pull request #11 from jonboulle/master

daemon: make sure the unlock loop is actually closed