thread: init thread cap for non-core main threads

ref #989
base: enable tracing not before reinit_main_thread

ref #989