Add old_priority on thread struct and add set, get functions.