Soong caches the output of `PathForSource` when used with
`OnceSourcePath`. When `AllowMissingDependencies` is true,
`PathForSource` is used to record the missing dependencies of each
module context.
This leads to non-deterministic behavior as the first module that
populates the cache via the Once* key successfully records the missing
dependency, but the subsequent modules that hit the cache do not.
This change fixes the issue by only caching the string in `Once`,
and invoking `PathForSource` for every module context.
This ensures that every module correctly evaluates the path and records
the missing dependencies correctly.
Bug: 483125122
Test: OUT_DIR=out build/soong/tests/build_action_caching_test.sh
Change-Id: Ia95447de8b41bd75f465c12d0c23c0ee71476f25