Add lock/unlock statement support

doc string