transcode: fix picture release code

There was a bug that if you had threads but no fps it would release
p_pic that is in fifo for encoder and stuff happened. I introduced this
but in that lipsync change.