CRUNCH-471: Make CacheEmitter methods inside of DoFnIterator synchronized.