fix error when trying to concurrently open a file that hasn't been flushed yet.

HDF5 claims this is possible, although perhaps it shouldn't be supported. Added a warning,
and an flush statement for parallel hdf5.