Ensure atomic increment