Bug
1719578 use RefCountable for AudioDeviceInfo sets r=padenot
This reduces some copying and fixes a race where AppendElements() could add
the set of devices to the end of mInputDevices and/or mOutputDevices multiple
times if multiple threads were in EnumerateAudioDevices() concurrently.
It will also facilitate passing a thread-safe reference to mInputDevices
and/or mOutputDevices for use within CubebDeviceEnumerator without the need to
hold the Mutex.
Differential Revision: https://phabricator.services.mozilla.com/
D134808