sync-engine-shared - InputStream must be closed before writing file on Windows