Serialize access to the hdf5 library to prevent threading-related crashes.