Is it safe to get MAX_ID without holding the lock? The method is called from the UniqueID constructor.