[jit] Handled cases when input list to cat is mutated after cat using AliasDb (#60774)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60774
Test Plan: Imported from OSS
Reviewed By: mrshenli
Differential Revision: D29406100
Pulled By: navahgar
fbshipit-source-id: af6afca65881c18c51b482eb63898a0f1c94d591