Clean up TR_MSG, hopefully getting talloc context handling right