[msandr] Remove use of std::set in msandr client to avoid reentrancy issues.

Patch by Qin Zhao.