[PATCH 4.16 18/47] tracing: Fix crash when freeing instances with event triggers