TS-1475: Fix clang complaint in sync_cache_dir_on_shutdown.