Autodoc: add all modules to sources.tar

Closes #19403

This commit adds all modules in the compilation to the generated
`sources.tar` when using `-femit-docs` (including `std` and `builtin`).
Additionally, it considers the main module when doing so, rather than
the root module, so the behavior when running `zig test -femit-docs
test.zig` is now correct.
424dd17b6cIan Johnson committed on 3/28/2024, 4:30:29 AMparent9dac8db
1 file changedLine totals unavailable