protected function ensure_cachelock_available() {
        if ($this->cachelockinstance === null) {
            $this->cachelockinstance = cache_helper::get_cachelock_for_store($this->get_store());
        }
    }
protected function ensure_cachelock_available() {
        if ($this->cachelockinstance === null) {
            $this->cachelockinstance = cache_helper::get_cachelock_for_store($this->get_store());
        }
    }
protected function ensure_cachelock_available ( ) { if ( $ this -> cachelockinstance === null ) { $ this -> cachelockinstance = cache_helper :: get_cachelock_for_store ( $ this -> get_store ( ) ) ; } }
Ensure that the dedicated lock store is ready to go.

This should only happen if the cache store doesn't natively support it.
Ensure that the dedicated lock store is ready to go .