Do not use xcache variable cache if cache size is 0.

Fixes #6351

This is possible because it is possible to only use xcache as an opcode cache but not a variable cache.

@DeepDiver1975