CLC-2192 Use retriable to get around race conditions in first_or_create and first_or_initialize

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-2192