cache: create `cache` directory at init time
The cache directory will be needed very quickly, so it seems simpler to create
it early to make sure it has the same owner and permission than the other
directory in the repository.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.