873313 - Very high memory usage during repo sync

This PR addresses performance memory issues seen with synchronizing RPM repositories.

Please refer to the below wiki for an explanation on changes and expected performance improvements.
https://fedorahosted.org/pulp/wiki/PerformanceTesting/SyncPerformance_v2_Improvements