[WSD] Fix race between CQ thread info cleanup and thread exit.