Feature/fix bugs hdfs

@johnynek Looking at how we were using this, there's no locking/state written out. Does it need it/do we have it somewhere else?