[PATCH 5.17 12/39] ALSA: pcm: Fix races among concurrent read/write and buffer changes