[PATCH 5.10 166/172] powerpc/32: Fix overread/overwrite of thread_struct via ptrace