FLUME-2320. Fixed Deadlock in DatasetSink

(Ryan Blue via Hari Shreedharan)