[PATCH 4.9 164/167] powerpc/32: Fix overread/overwrite of thread_struct via ptrace