Make a writeMode for socket clients. When synchronous we will select until we get an error or are ready to write if we get a EAGAIN. This fixes problems with rc -s