I'll add a comment, but the race condition isn't an issue since we're using unique indexes for the relevant fields here.

Opened https://work4labs.atlassian.net/browse/OPS-1529 and adding FIXMEs.