basesrc-test: Fix race testing segment update