Don't set SO_LINGER

* Add a test case (exec-with-close-after-write.py) that shows that
setting SO_LINGER is problematic if the connection is closed right after
writing data.
* Comment out the code that sets SO_LINGER. We will decide later what to
do with that code.