wasapi: Fix infinite loop when the device disappears

When the audio device goes away during playback or capture, we were
going into an infinite loop of AUDCLNT_E_DEVICE_INVALIDATED. Return -1
and post an error message so the ringbuffer thread exits with an error.
8 jobs for wasapi-infinite-loop in 19 minutes and 32 seconds (queued for 1 second)
Status Name Job ID Coverage
  Preparation
passed gst indent #80849

00:00:52

passed manifest #80848

00:00:45

 
  Build
passed build fedora x86_64 #80850

00:03:28

 
  Test
passed check fedora #80851

00:03:38

 
  Full Builds
passed build android arm64 api28 #80852

00:03:28

passed build cerbero cross win32 #80854

00:07:04

passed build cerbero cross win64 #80855

00:10:52

passed build cerbero fedora x86_64 #80853

00:11:31