SERVER-9124: avoid raw pointers for SM's nativeHelper