skip GPU test on sandcastle if sanitizer is enabled (#47626)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47626
`caffe2/test:cuda` was safeguarded by a GPU availability check however most of the mixed CPU/GPU tests aren't.
Use `TEST_WITH_*SAN` flags to safeguard test discovery for CUDA tests.
Test Plan: sandcastle
Reviewed By: janeyx99
Differential Revision: D24842333
fbshipit-source-id: 5e264344a0b7b98cd229e5bf73c17433751598ad