Replaced the incorrect ilock with an actual lock object.