Adds sync structures for concurrent writes to files.
Adds sync structures for concurrent writes to files.

ShengjieLuo/pachyderm,ShengjieLuo/pachyderm,ShengjieLuo/pachyderm,sambooo/pachyderm,sambooo/pachyderm,sambooo/pachyderm