ALSA: pcm - Fix race with proc files