ssl/*: switch to switch to Thread-Sanitizer-friendly primitives.