fix a thread-safety issue in MessageDispatch.SetHandled