pthread: make sure AVFrame.extended_data is set properly.