Replaced lock with Interlocked.Increment