reboot: Use threads to avoid slowing down UI

author: @zwliew
fixed build error