Update r18n.rb

Use thread_set instead of set
Merge pull request #92 from viktors/master

Fixes an issue when running with Sinatra under multithreaded web-server