GstMfxEnc: Optimize task pool operations.