threadsafe particle restart writing