[PATCH 6.1 375/591] ALSA: pcm: Fix potential data race at PCM memory allocation helpers