Set OpenSSL locking callback.

Refs #4865