os: avoid deadlock in packet stream (fix #1186)

Respectively resend a packet-stream-not-empty signal when a new signal handler
gets registered.