Soong was incorrectly passing -I arguments to `go compile` for all
transitive dependency packages, allowing `import` statements to
reference packages that were not listed as dependencies of the
module in the Android.bp file. This bypassed Soong's visiblity
restrictiions.
Add direct dependencies on any packages referenced by `import`
statements.
Bug: 439627342
Test: builds with transitive dependencies removed from -I flags to go compile
Change-Id: Iccb523f454e8db24ea00f94bc9031b97cbadf04e