builtin/apply: make apply_all_patches() return 128 or 1 on error