Don't include external include dirts in the unused function check.

Fix broken CPPChecksAllInternalHeadersOnGlobalUnusedCheck test
and related functionality.