Fix dangling iterator in renameCollection across databases

When doing renameCollection across databases, close the iterator used for the copy before dropping the source collection.

https://jira.mongodb.org/browse/SERVER-15121