lang/perl5.36: fix CVE-2024-56406
(cherry picked from commit 070255657e2b0b6eeeaf2fa755e390cddbd635f9)