[U-Boot] [PATCH v3 5/5] lib: consolidate hang()