Multiprocessing: writing into a hdf5 file