[asan] fix the test so that it works even if stack size is unlimited by default