Close stdin immediately after connecting through net-ssh

We don't support sending information to stdin when executing commands
through net-ssh anyway, so there's no reason to leave stdin open.

This should solve the problem we encountered where user scripts could
block waiting to read from stdin.