syscallenter() samples P_TRACED before fetching arguments and invoking the
syscall handler. A debugger can attach or detach while that handler runs,
so the entry-time snapshot does not describe the tracing state when the
handler returns.
Re-evaluate traced at the common retval path, including early error
returns. Check TDB_SCE, TDB_BOUNDARY and TDB_SET_SC_RET so that flags
left by a debugger that detached are still cleared.
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation