AP_HAL_Linux: Scheduler reboot fix

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