fix race condition when removing tracks from playlist

closes #160