Place a lock.
Place a lock.Registers a resource lock. The lock will first be checked to make sure you have permission to place it. Permission is given if the lock:
- does not exist;
- exists and is your own; or
- exists and is stale (i.e. belongs to a dead process).