AP_HAL_Linux: Scheduler reboot fix

Exit from the autopilot when reboot is commanded.
The software assumes that the code is being
launched in an infinite loop thereby an exit
will make it reboot.