builtin/apply: move applying patches into apply_all_patches()