Fixed call order of thread_update_load_avg() and thread_update_recent_cpu()