Corner case fix: allow 0-byte send() after ready-for-write

This might fix issue #9.