mod_{dialback/s2s}: improve code for multiplexed streams (Fixes #174).