[PATCH openEuler-5.10 14/31] ALSA: pcm: Fix races among concurrent read/write and buffer changes