encoder/shine: add workaround for segmentation fault

Initializing and then closing without writing anything
resulted in a crash (bug filed at Shine repo). This workaround
makes sure that the Shine library is not initialized until
MPD calls the write() function.