Wrap configuration.allDependencies in a callable

calling allDependencies on a configuration object forces some
calculations and mutations of the configuration object which makes it
hold onto more objects and so increase memory used on syncing, however,
resolving the allDependencies closure is not needed as the local files
aren't queried from the variant dependencies in the model and so
shouldn't be needed for a sync.

Bug: 299242346
Test: manual
Change-Id: Id00f6e3972ff77200efdbf9b0b8e57ce657ed77e
(cherry picked from commit 04f01d76a5b05c955191d76d324ca5e6da03d436)
1 file changed