[sanitizer] Replace more platform checks with SANITIZER_ constants.