paplayer: fix hang in flac codec, ticket 12056
paplayer: fix race between player destruction and queue next file
Merge pull request #4111 from FernetMenta/ticket

paplayer: fix hang in flac codec if read fails, fixes ticket 12056