[PATCH 4.14 121/199] tracing: Fix the race between registering snapshot event trigger and triggering snapshot operation