Switch to thread safe __sync_fetch_and_add instead increment