Fix GetLocalPeer usage in perf handlers (#7249)
Fix GetLocalPeer usage in perf handlers (#7249)

GetLocalPeer usage should be fixed and used only
once per call for not all local endpoints.
aead/minio,harshavardhana/minio,krishnasrinivas/minio,krishnasrinivas/minio,NitishT/minio,harshavardhana/minio,fwessels/minio,minio/minio,aead/minio,aead/minio,harshavardhana/minio,harshavardhana/minio,jimjag/minio,NitishT/minio,minio/minio,aead/minio,krishnasrinivas/minio,harshavardhana/minio,NitishT/minio,vadmeste/minio,NitishT/minio,balamurugana/minio,balamurugana/minio,krisis/minio,aead/minio,fwessels/minio,aead/minio,fwessels/minio,krishnasrinivas/minio,harshavardhana/minio,fwessels/minio,vadmeste/minio,harshavardhana/minio,donatello/minio,donatello/minio,aead/minio,harshavardhana/minio,jimjag/minio,aead/minio,jimjag/minio,jimjag/minio,krisis/minio