[Sanitizer] Don't link tests with -lpthread on Android.