Thread safety analysis: move smart pointer checks from -Wthread-safety-beta
to -Wthread-safety.