Optimize arena_prof_tctx_set() to avoid reading run metadata when deciding whether it's actually necessary to write.