Fix unlink() for CacheEngine::clear() failed on windows.

fixed once in 7dae4a7fd834011df6bbc3b5d4eec3073d7c5500
but reproduced with b3860b399221d5b2c5b9fac85a8881cb4ca9e146