net: Use chan flag O_NONBLOCK for nonblocking