windows: remove 'runtime.SetFinalizer: finalizer already set' error
fix underflow for SetSystemFileCacheSize
Move call to Sync out of test closures