tracing/perf: Move the PERF_MAX_TRACE_SIZE check into perf_trace_buf_prepare()