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