test/run.sh: Change vtlock function

So we can run multiple commands within the lock.