adding thread assertion when getting a js_runner from a ql::env_t