powerpc/ptrace: Fix out of bounds array access warning