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.
Merge pull request #82 from StudioMelipone/fix-sharing-config-between-threads

Fix configuration sharing between threads