Add more fixes for Gradle Project Isolation

- Fix DarwinBenchmarkPlugin to not use findProperty that reaches out
  to parent projects
- Disable wasm and js targets in KMP projects when project isolation is
  enabled (currently not compatible)
- Moved to ext.registerPrepareSqliteSourcesTask in
  sqlite-bundled/build.gradle to make sure property search is not used
  accessing parent projects
- Stop passing in root project to get distribution directory in
  tracing-perfetto-handshake
- Stop passing root project in car/app/app to get outDir
- Do not use rootProject.projectDir in collection-benchmark and benchmark-darwin-samples
  as accessing rootProject is unsafe, use rootDir instead.

Test: ./gradlew projects -Dorg.gradle.unsafe.isolated-projects=true -Dorg.gradle.internal.isolated-projects.configure-on-demand.tasks=true
      List of failures slighly shorter
Bug: 358448803
Change-Id: I8d294ea96b01a6edd8495574516102b68ec2fb74
7 files changed