Updating lock to be an expression