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