menu: Update bootmenu_autoboot_loop() to return the code