AutoGetCollectionForRead yields its locks here, then tries to print a const NamespaceString& nss here.
If the collection is dropped after the locks are yielded and before the line is printed, then it will result in an invalid access.
We should copy the NamespaceString before yielding locks to print later on.