[lib][minip] fix tcp debug command with the shell turned off