[PATCH 06/24] menu: Update bootmenu_loop() to return the code