Merge change 23277 into eclair

* changes:
  Fix issue 2085690: AudioFlinger must properly terminate the input and output threads when destroyed.