Code example for Lock

Methods: tryLockunlock