Fix bash bug in locking_runner