lang/perl5.40: update to 5.40.5
Changes: https://metacpan.org/release/SHAY/perl-5.40.5/view/pod/perldelta.pod
Security: CVE-2025-40909, CVE-2026-57432, CVE-2026-8376, CVE-2026-13221
(cherry picked from commit 075927808130a08363f39211185cf964ab76f7ab)