pcm: Fix memory leak at snd_pcm_new when THREAD_SAVE_API is defined