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