Fixed deadlock in cb_debug.