Fix a race condition that caused device states to become incorrect for hints.