Is there a way to make "increment" thread safe?

i think is error on init key will repeat