[matter] use copy.deepcopy with get_backtrack_infos() Portage data

A memory leak has been observed and may be related to keeping
Portage objects references alive.