Epic #83968: PSR-11 Initiative
PackageManager caching is over complicated
The PackageManager caches all Package objects.
As a Package object currently requires a reference to the PackageManager, the PackageManager temporarily provides a reference to itself in
$GLOBALS['TYPO3_currentPackageManager'] while using
unserialize to re-create caches Package objects.
The PackageManager reference should just be dropped.