public function lock()
    {
        $this->_validate();
        $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = true;
        return true;
    }
public function lock()
    {
        $this->_validate();
        $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = true;
        return true;
    }
public function lock ( ) { $ this -> _validate ( ) ; $ _SESSION [ $ this -> secretStorage ] [ 'locks' ] [ $ this -> _namespaceName ] = true ; return true ; }
Lock the namespace, this will prevent removal of keys

@return boolean
@throws \Exception
Lock the namespace this will prevent removal of keys