ALLJOYN-2442: Replace Crypto_ScopedLock with OpenSSL's locking
callback.

This fixes possible deadlock with the Crypto_ScopedLock usage.

Change-Id: I0e177b1c740f8f1e1a70b4eb9a09853f94d55cb8
ALLJOYN-2442: Fix build error with Makefiles.

Change-Id: I7009be2b9fed7e38435320f6303f8efe5a2d9551