Ignore dependencies for namespaces that use/require themselves.

This prevents a StackOverflowError that will occur when computing
transitive dependencies for a namespace that depends on itself.