[PATCH 5.9 261/391] tracing: Fix race in trace_open and buffer resize call