Swift: Ninja: Remove module dependency for executables
We shouldn't include the swiftmodule in the ninja dependency graph unless that target emits a swiftmodule.
Fixes: #25869 (closed)
Backport: release
Topic-rename: swift-fix-submodule-dependencies
Edited by Brad King