[PATCH openEuler-1.0-LTS 45/82] tracing: Fix race in trace_open and buffer resize call