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