[PATCH] ALSA: pcm: Fix potential data race at PCM memory allocation helpers