Correct way to lock the dictionary object Correct way to lock the dictionary object multithreading multithreading