audio_pipe: don't use the name 'wait'

Fixes compile on systems where POSIX wait is in the namespace.