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