To allow the AudioDeviceModule to be reinitialized on a different thread after termination, detach AudioDeviceModule and the input/output devices when Terminate is called. Also destroy the AudioDeviceBuffer. Bug: webrtc:7452 Change-Id: I50ef77c531f33d4efa0567d0475dd8280337bed9 Reviewed-on: https://webrtc-review.googlesource.com/86127 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23784}