Quick thread hack to make JVM initialization progress.

I'll need a better solution in the future.