Walk through how you would detect and resolve a race condition in a highly concurrent production application.