[lsan] Fix flaky test.