fix race condition in create credential core

now that core has a uniqueness constraint we have to close
up the race condition.
Merge pull request #66 from rapid7/bug/MSP-10914/race-condition

fix race condition in create credential core

MSP-10914 #land