[PATCH openEuler-1.0-LTS] tracing: Fix race issue between cpu buffer write and swap