How do you handle concurrency and race conditions in a multi-threaded system when building Utilidata edge services?