Fix configuration sharing between threads

On rubinius, global configuration wasn’t working, each thread having
its own. By using `Thread.main` instead of `Thread.current` it should
now be fixed.