[JENKINS-48505] Invoke optimistic before computeIfAbsent to avoid contention.
[JENKINS-48505] Invoke optimistic before computeIfAbsent to avoid contention.

(cherry picked from commit dce450e1b4565b682f321329caea080293ef0b9b)

damianszczepanik/jenkins,patbos/jenkins,stephenc/jenkins,viqueen/jenkins,amuniz/jenkins,oleg-nenashev/jenkins,bkmeneguello/jenkins,oleg-nenashev/jenkins,rsandell/jenkins,stephenc/jenkins,dariver/jenkins,daniel-beck/jenkins,v1v/jenkins,oleg-nenashev/jenkins,kohsuke/hudson,stephenc/jenkins,ikedam/jenkins,damianszczepanik/jenkins,damianszczepanik/jenkins,godfath3r/jenkins,sathiya-mit/jenkins,jenkinsci/jenkins,DanielWeber/jenkins,jenkinsci/jenkins,daniel-beck/jenkins,Jochen-A-Fuerbacher/jenkins,patbos/jenkins,Vlatombe/jenkins,recena/jenkins,godfath3r/jenkins,ErikVerheul/jenkins,viqueen/jenkins,amuniz/jenkins,kohsuke/hudson,ikedam/jenkins,ikedam/jenkins,andresrc/jenkins,batmat/jenkins,Jochen-A-Fuerbacher/jenkins,damianszczepanik/jenkins,jenkinsci/jenkins,MarkEWaite/jenkins,godfath3r/jenkins,pjanouse/jenkins,sathiya-mit/jenkins,MarkEWaite/jenkins,recena/jenkins,viqueen/jenkins,rsandell/jenkins,aldaris/jenkins,damianszczepanik/jenkins,sathiya-mit/jenkins,pjanouse/jenkins,rsandell/jenkins,rsandell/jenkins,pjanouse/jenkins,dariver/jenkins,sathiya-mit/jenkins,MarkEWaite/jenkins,stephenc/jenkins,bkmeneguello/jenkins,patbos/jenkins,Vlatombe/jenkins,MarkEWaite/jenkins,batmat/jenkins,recena/jenkins,DanielWeber/jenkins,jenkinsci/jenkins,DanielWeber/jenkins,patbos/jenkins,sathiya-mit/jenkins,recena/jenkins,amuniz/jenkins,kohsuke/hudson,bkmeneguello/jenkins,bkmeneguello/jenkins,aldaris/jenkins,daniel-beck/jenkins,ikedam/jenkins,sathiya-mit/jenkins,ErikVerheul/jenkins,amuniz/jenkins,viqueen/jenkins,jenkinsci/jenkins,ikedam/jenkins,amuniz/jenkins,ErikVerheul/jenkins,andresrc/jenkins,damianszczepanik/jenkins,jenkinsci/jenkins,stephenc/jenkins,kohsuke/hudson,daniel-beck/jenkins,dariver/jenkins,andresrc/jenkins,ErikVerheul/jenkins,MarkEWaite/jenkins,patbos/jenkins,v1v/jenkins,bkmeneguello/jenkins,andresrc/jenkins,oleg-nenashev/jenkins,Jochen-A-Fuerbacher/jenkins,daniel-beck/jenkins,viqueen/jenkins,batmat/jenkins,Jochen-A-Fuerbacher/jenkins,dariver/jenkins,bkmeneguello/jenkins,aldaris/jenkins,godfath3r/jenkins,DanielWeber/jenkins,jenkinsci/jenkins,rsandell/jenkins,daniel-beck/jenkins,Vlatombe/jenkins,recena/jenkins,viqueen/jenkins,MarkEWaite/jenkins,Vlatombe/jenkins,patbos/jenkins,batmat/jenkins,Jochen-A-Fuerbacher/jenkins,oleg-nenashev/jenkins,damianszczepanik/jenkins,ikedam/jenkins,pjanouse/jenkins,bkmeneguello/jenkins,amuniz/jenkins,godfath3r/jenkins,Vlatombe/jenkins,recena/jenkins,stephenc/jenkins,v1v/jenkins,batmat/jenkins,rsandell/jenkins,sathiya-mit/jenkins,ErikVerheul/jenkins,v1v/jenkins,godfath3r/jenkins,v1v/jenkins,kohsuke/hudson,dariver/jenkins,aldaris/jenkins,oleg-nenashev/jenkins,stephenc/jenkins,DanielWeber/jenkins,kohsuke/hudson,rsandell/jenkins,ErikVerheul/jenkins,andresrc/jenkins,pjanouse/jenkins,daniel-beck/jenkins,MarkEWaite/jenkins,ErikVerheul/jenkins,batmat/jenkins,pjanouse/jenkins,dariver/jenkins,daniel-beck/jenkins,DanielWeber/jenkins,oleg-nenashev/jenkins,Vlatombe/jenkins,DanielWeber/jenkins,pjanouse/jenkins,batmat/jenkins,Jochen-A-Fuerbacher/jenkins,v1v/jenkins,aldaris/jenkins,godfath3r/jenkins,recena/jenkins,v1v/jenkins,aldaris/jenkins,MarkEWaite/jenkins,andresrc/jenkins,patbos/jenkins,dariver/jenkins,viqueen/jenkins,damianszczepanik/jenkins,andresrc/jenkins,aldaris/jenkins,ikedam/jenkins,kohsuke/hudson,Jochen-A-Fuerbacher/jenkins,rsandell/jenkins,amuniz/jenkins,Vlatombe/jenkins,jenkinsci/jenkins,kohsuke/hudson,ikedam/jenkins