[PATCH openEuler-5.10-LTS 15/31] ALSA: pcm: Fix races among concurrent prepare and hw_params/hw_free calls