[PATCH 6.1 499/600] tracing: Fix race issue between cpu buffer write and swap