[PATCH 6.4 603/737] tracing: Fix race issue between cpu buffer write and swap