Add a few module visiting methods that return ModuleProxy. Change a few places to use these new methods when visiting dependencies. Bug: 358427516 Test: Manual verified the generated mk and ninja files. Change-Id: I1d1b03fbf45ce7896f04611a94352b661a2f4c4e