tracing: Add trace_seq_has_overflowed() and trace_handle_return()