Made lock object readonly in logging utility.
Removed a Where and made it simply a FirstOrDefault.