Add support for Ruby 2+'s Thread#thread_variables for 1.9.3
Fix timing.

Re-implement sleep (just for global namespace) to be relative to last 
sleep in the current thread, i.e. pretend all computation between sleeps 
took no time. 

If you wish to get the original sleep behaviour back, use Kernel.sleep.