[ASan] make pthread_getschedparam test more robust