Update r18n.rb

Use thread_set instead of set