1) Restart the process with a write lock if we discover an expired key while holding the read lock. 2) Move incrementing the key reference inside the lock block of code.
1) Restart the process with a write lock if we discover an expired key while holding the read lock. 2) Move incrementing the key reference inside the lock block of code.