Merge pull request #5531 from joshtriplett/mempack-threads mempack: Use threads when building the pack