lock method

dynamic lock()

Implementation

lock() {
  _lock = true;
}