add jl_is_initialized, and make jl_init idempotent