Ruby thread local variables example