Fixed pseudo-racing condition in package relay of switches and co. that could increase the time it took to resend a packet. Closes #327.