Fix settings caching and persistence.

A long-running instance could easily revert any changes to settings
made by other instances.  Memcached settings would persist until
the cache died on its own.  Reading settings was unnecessarily
wrapped in a transaction.