Update lock-with-pid.sh