lock/unlock when calling a tdm_output internal function