Fix locking of Playlist to protect against access from the GUI thread