Move prof_sample_threshold initialization into prof_alloc_prep(), before using it to decide whether to capture a backtrace.