[PATCH v3 1/4] jscript: Move thread_id from JScript struct to TLS data.