Adding a small patch to test mongodb secondary stats collection.
Deprecating mongodb option AllowSecondaryQuery for PreferSecondaryQuery.
Make sure we free and reset old secondary host references.