[stream] fixed: set O_NONBLOCK on detach