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

Use R18n.thread_set instead of R18n.set.
Tested with Rainbows! using ThreadPool.