Limit the amount of times compare_exchange_weak is called, to avoid issues with contention when multiple cpu cores request the same address. Related-To: NEO-7030 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>