Update lock.rb