[sanitizer] Fix build on platforms where dtls support is disabled.