Work around x86 kernel bug affecting ptrace and pread/write64.