Remove useless safedict class from erebor
SafeDict was used at some point to deal with multithreading issues. 1) we don't need it in the current code. 2) it has a slightly weird interface not matching typical dicts, which makes the code less readable. This commit removes the class, replacing the few variables using it with a regular dict, and changes the corresponding code points use the regular dict interface.