When the deferred message is sent when the event is commit, use AgentLock to protect it against shared access.
When the deferred message is sent when the event is commit, use AgentLock to protect it against shared access.

Unverified patch.

jojochuang/eventwave,jojochuang/eventwave,jojochuang/eventwave,jojochuang/eventwave,jojochuang/eventwave