Returns a procedure that when applied to zero arguments retrieves the
current value of the preference
(framework/preferences) named pref and when
applied to one argument updates the preference named pref.