This is to ensure that thread local structures have been properly initialized (lock-free queue buffers are thread local), as capturing callstack involves allocating memory from rpmalloc, which must be initialized in each thread before allocation.