lock in ruby version