[omxcodec] Only do essential calls in texture thread