Throw a lock around cached preference refresh.
Merge pull request #28 from fedora-infra/feature/lock-on-pref-update

Throw a lock around cached preference refresh.