Recompile tramp-sh.el, and rerun the test with tramp-verbose 10. Your patch isn't needed in this scenario. Best regards, Michael.