Fixed some cases where a JB_Env from one thread was used in another thread: required some rewrite of object lifecycle code