testing/perl-net-amqp-rabbitmq: upgrade to 2.40012, fix build with gcc 14
https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/releases/tag/2.40012
Also resolve rebuild error with gcc 14.
https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/releases/tag/2.40012
Also resolve rebuild error with gcc 14.