bootstrap: fix hang waiting for reboot