SERVER-9125 Fix memory ownership during large collection copy