Function to get copy of time_stats_tree thread-safely added