Revert "net: simplify sock_poll_wait"