revise locking.t to use subprocess to check locks