dumps with the same timestamp now get assigned different IDs. Now using a locking mechanism for access to the dumps dict.