[PATCH 3.16 359/366] tracing: Fix crash when freeing instances with event triggers