Fix random crash on WASAPI free