Might as well mutex here to be safe.
Don't double close the dsound thread.
Actually, let's not wait at all in Core_Stop().

It just triggers the action on the other thread.
Merge pull request #4153 from unknownbrackets/shutdown

The shutdown adjustments keep coming