playlist: fix segfault on out of memory
playlist: fix segfault race condition when adding a sink