powerpc: Add trap_nr to thread_struct