Simplify logic in finalizer for scanning mature objects