This code generates operations needed for updating threads part of message store after starting to send a message.
In this case it's hard to early exist and remove indentation and have one place for processing ops and asserting results.
Depends on D7412