Fixed threading

There was an issue when if are hydrating the same object twice on
multiple threads sometimes it would say key already exists.