Add a method to lock a contract.