Small update: got a simple lock on working (I also have a primitive lock on cursor too).