Fix concurrency issue with LogManager.Log

lock should also encompass the dictionary lookup otherwise objectName can be added multiple times