This component provides the LockInterface as well as an LockAwareInterface. It comes with two implementations of the LockInterface.
You can use this interface to lock classes or processes to prevent changes in an object (so you freeze/lock the class for property setting) or lock an existing process (like a cronjob) to prevent double execution.