[TASK] Use $GLOBALS['TCA'] instead of $TCA

Change-Id: Ibfda5474d410f31a2f196af6522a21b611aa3664
Resolves: #58237
Releases: 6.2
Reviewed-on: https://review.typo3.org/29678
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen