So maybe you could have a dead simple Workflow tha...
# suitescript
e
So maybe you could have a dead simple Workflow that just locks/unlocks the transaction, and then your scripts could leverage
N/workflow
to do the locking