Modify tracked_ptr to allow flexible cost reduction in debug mode;