Walk walks through Go packages under the given dir.
It calls back "f" for each package.
It is similar to "golang.org/x/tools/go/buildutil".ForEachPackage, but
it does not assume the standard Go tree because Bazel rules_go uses
go_prefix instead of the standard tree.