tdm_output: add missing mutex unlock