Locking on an stack-allocated / local variable
One of the fallacies while using lock is the usage of local objects as locker in a function. Since these local object instances will differ on each call of the function, lock will not perform as expected.
List<string> stringList = new List<st...