setup-environment: only write sstate-cache when run from CI
- Due to problems with file permissions in the sstate-cache using SSTATE_DIR for local builds and CI builds does not work. So only CI builds set SSTATE_DIR and write sstate-cache, local builds use SSTATE_MIRRORS to consume the sstate-cache