merge thread_measure_stack_usage declarations