HDF5 with no concurrent access: add a mutex for slow but working access