[PATCH 5.4 2/5] ALSA: pcm: Fix races among concurrent read/write and buffer changes