Backport PR #59807: BUG (CoW): fix reference tracking in replace_list with None
Backport PR #59807
Only the ARM build is failing, which is being addressed in https://github.com/pandas-dev/pandas/pull/59941