net: Avoid extra wakeups of threads blocked in wait_for_packet()