SOLR-8355: fix for update permissions causing node recovery failures(backport from branch_5x for 5.3.2 release)