adds a lock to not break cache warming if propel not yet setuped