[PATCH 4.9 08/61] tracing: Fix crash when freeing instances with event triggers