Fix issue where sometimes the cache would explode because an ActiveSupport::Cache::Entry was returned when the lock was in used instead of just a value (not sure why).