[PATCH 22/41] tracing: Fix the race between registering 'snapshot' event trigger and triggering 'snapshot' operation