Remove cross partition modules from provideLibs

provideLibs of a partition is determined by doing a graph walk. This was
causing linker.config.pb of vendor to have extraneous entries.

Test: /vendor/etc/linker.config.pb is identical between make and soong
img

Change-Id: I79312083e1848a1f4cc1db1005a18ab887ba6ec0
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index fbc8089..1eff8d5 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -981,7 +981,7 @@
 	ctx.WalkDeps(func(child, parent android.Module) bool {
 		for _, ps := range android.OtherModuleProviderOrDefault(
 			ctx, child, android.InstallFilesProvider).PackagingSpecs {
-			if _, ok := deps[ps.RelPathInPackage()]; ok {
+			if _, ok := deps[ps.RelPathInPackage()]; ok && ps.Partition() == f.PartitionType() {
 				modulesInPackageByModule[child] = true
 				modulesInPackageByName[child.Name()] = true
 				return true