avcodec: use active_thread_type to check if mt decoding is active