Inproved lock object in AnonymousEventHandlerBag.