Automatically saves prefs on `set` unless new `doNotSave` flag is set.

This is following the pattern @RaymondLim established in #6740.
Merge pull request #6909 from adobe/dangoor/pref-set-save

Automatically saves prefs on `set` unless new `doNotSave` flag is set.