[BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
[MERGE] [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order