Don't throw away useful stdout and stderr. Fixes #8418

When supplying a sudo password to a server that uses passwordless sudo,
we should not throw away useful stdout and stderr. This is particularly
important for modules that perform md5 checks as part of the pre module
execution.
Applied fix for sudo with no prompt to paramiko

Effectively reproduces @sivel's work from #8900 but for
the paramiko connection. Fixes #8418 when using paramiko

This allows `_remote_md5` to work if a sudo password is
passed in when no sudo password is required.
Merge pull request #9014 from willthames/paramiko_sudo_no_prompt

Allow _remote_md5 to work with passwordless sudo even if password is supplied