avformat/hlsenc: write temp file for append single file by encryption mode