fix delayed jni init for disabled threads build