SOLR-8326: Fix inter node request failures after node restart when BasicAuth is enabled (backport from branch_5x for 5.3.2 release)