KAFKA-10257 system test kafkatest.tests.core.security_rolling_upgrade_test fails (#9021)
KAFKA-10257 system test kafkatest.tests.core.security_rolling_upgrade_test fails (#9021)

security_rolling_upgrade_test may change the security listener and then restart Kafka servers. has_sasl and has_ssl get out-of-date due to cached _security_config. This PR offers a simple fix that we always check the changes of port mapping and then update the sasl/ssl flag.

Reviewers:  Ismael Juma <0794a5c7e497910d682bf2c54c66cc30760c0221@juma.me.uk>, Jun Rao <junrao@gmail.com>
TiVo/kafka,lindong28/kafka,apache/kafka,guozhangwang/kafka,lindong28/kafka,guozhangwang/kafka,lindong28/kafka,TiVo/kafka,Chasego/kafka,TiVo/kafka,Chasego/kafka,apache/kafka,guozhangwang/kafka,apache/kafka,Chasego/kafka,lindong28/kafka,Chasego/kafka,apache/kafka,TiVo/kafka,guozhangwang/kafka