fix cache size race
This fixes race conditions as observed here: https://gitlab.com/BuildStream/buildstream/-/jobs/104201523
The CAS cache should not ever create temporary files within the CAS directory, it has a designated temp directory for this purpose which it should use, otherwise we risk the cache size calculation job bailing out on FileNotFoundError exceptions.