tracing: Fix the race between registering 'snapshot' event trigger and triggering...