Deprecating mongodb option AllowSecondaryQuery for PreferSecondaryQuery.
Make sure we free and reset old secondary host references.