Optimize peel_ref for the current ref of a for_each_ref callback