*8129* Avoid race condition for parallel referral inserts