stream: use kevent() information before accept()

Limit number of syscalls by using backlog length information provided by
kevent().