[sr-dev] git:admorten/sca: sca: fix race condition when two endpoints seize same index simultaneously