Fix an issue with preferences not being scoped to direct ancestors.

For more info on this issue, see
https://github.com/spree/spree/commit/02e20083097969730dab885b7db46f0b34458b9c#core/lib/spree_core/preferences/model_hooks.rb