Set nonblocking mode from read_nonblock