Fixes for ptrace_syscallreq()
Tested by: pho
(cherry picked from commit 974be51b3f6070f9aae02e115ea6099f90bc9175)