fixing a bug in valgrind checker's nesting handling; adding ct_debug_get_owner()