[PATCH 4.14 19/52] tracing: Fix crash when freeing instances with event triggers