[BUGFIX] #53574
Add garbage collection task

Resolves: #53574
Releases: 6.1, 4.7, 4.5
Change-Id: I809287b2a7fa9a5e74d03ff11f28556a8f722193
Reviewed-on: https://review.typo3.org/29051
Reviewed-by: Ralf Zimmermann
Tested-by: Ralf Zimmermann