Tests: handled GC deficiency in Perl < 5.22. This allows to unbreak running worker_shutdown_timeout tests on stable. See for more details: https://rt.perl.org/Public/Bug/Display.html?id=122556