Fix the register/unregister of glitch and signal lost patterns. They needed to include the channel ID.
Make the timeout time depend on the number of endpoints in the chain.