SERVER-11971 slaveok versioning logic should also apply to read prefs
Merge remote-tracking branch 'upstream/v2.4' into v2.4