Fix chained callback dispatch

Signed-off-by: Paul Brook <paul@nowt.org>