Add lock/unlock statement support

docstring plz