Use separate update caches when cross compiling scala

Similar to https://github.com/sbt/sbt/pull/1277. Avoids unnecessary updates when switching scala versions.