Remove avcodec_thread_execute from avcodec.h, and make static functions that