coreaudio: fix data race with mute_set and volume_set
MR previously submitted on the ML:
https://mailman.videolan.org/pipermail/vlc-devel/2021-April/143223.html
https://mailman.videolan.org/pipermail/vlc-devel/2021-April/143232.html
Edited by Thomas Guillem