net: Fix the condition passed to sk_wait_event()