Add concurrency-safe save/update for detected entities
Introduce save_detected_entity and update_detected_entity with fcntl
file locking to serialize concurrent writers to the same facet+day
file, preventing lost updates. Includes randomized backoff retry on
transient OS errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>