tr: destroy the mutex after uv loop exit

destroying the mutex too early will
lead to coredump as some operation rely on it.