[BUGFIX] Skip APC tests if on cli and enable_cli is off

Resolves: #58451
Releases: 6.2
Change-Id: I296720fd83343ea0d82b4461aaae46c4c9a14932
Reviewed-on: https://review.typo3.org/29904
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn