If attaching to stdin, set StdinOnce, as per the docker CLI.

See [lines 1943-1946 in commands.go](https://github.com/dotcloud/docker/blob/fb981bdace66e5b34d41125beb16e450998fd1e7/commands.go#L1943-L1946).