mojo: Improve dep tree generator to use fewer promises.

2 jobs for make_it_mojo in 1 minute and 28 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Test
passed #16600
smoke-test

00:01:28

passed #16599
unit-test

00:00:38