[sanitizer] when recycling deadlock graph nodes, properly recycle edges