Move stream_.state update to the end of wasapiThread()