oboe: lock waitForStateChange for AAudio

Call AAudio with timeout zero to avoid blocking.
Prevent crashes if close() called from another thread.

Possible fix for #406
2 files changed