Changed the parameters in the lock's constructor and in its release method.