Memory leak when using `sync`/`lsf` with S3 and millions of files

See: