SFR 455880 WASAPI deadlock.  Fix deadlock - use a smaller-scoped lock.