How to implement locking in a multi process system? How to implement locking in a multi process system? jenkins jenkins