brick_mem: improve debugging
infra: improve callback debugging
all: improve checking of callback chain