check_memory: stop using long-deprecated twisted internals