Mach-O dylibs can re-export other dylibs as sub-libraries, meaning that the
symbols in those sub-libraries will be available under the umbrella
library's namespace.
Supporting this unblocks the linking of real programs, since many core
system functions are only available as sub-libraries of libSystem.
Depends on D79211.
This seems pretty inefficient in a bunch of ways in that we're iterating over the entire input file list (only a small number of which will be dylibs) multiple times (once for each -sub_library option). I don't know how bad it'll end up being in practice though, and there's a bunch of straightforward ways to make it better if need be, so I guess it's okay for now.