Convert left-over manual ->runstate setting to td_set_runstate()