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