add lock around registration of server retry
Merge pull request #119 from 3rd-Eden/retries-race-condition

this.retries in IssueLog reaches negative value