[PATCH 6.0 151/240] selftests/ftrace: fix dynamic_events dependency check