Fix build-scan-capture.init.gradle so that it applies to versions 3.+, and include this version in test coverage.
The `gradle-build-action` test workflows need to write cache entries, even when run on non-default branches. This change add explicit configuration to set `cache-read-only: false` when cache writing is required.