avcodec/pthread_frame: Fix compiling with thread-unsafe-callbacks disabled