ContainingPackage returns the package containing filename.
If filename is not absolute, it is interpreted relative to working directory dir. All I/O is via the build context's file system interface, if any.
The '...Files string' fields of the resulting build.Package are not populated (build.FindOnly mode).
TODO(adonovan): call this from oracle when the tree thaws.