correct RIODesc->flags on ptrace