objectcache: Split off some code in WANObjectCache::getWithSetCallback