Improved box checksum verification performance

When adding large boxes verifying the checksum took noticably longer than expected because the Ruby GC was needlessly working overtime.
Merge pull request #4090 from mitchellh/improve-checksum-verification-performance

core: Improved box checksum verification performance