linux-generic: crypto: add openssl locking support for thread safety
linux-generic: crypto: add openssl locking support for thread safety

Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2798 by adding
OpenSSL callbacks for locking that use ticketlocks to provide
thread-safety for OpenSSL calls made by ODP components such as random
number generation.

Signed-off-by: Bill Fischofer <52f3c909d51cc5d355a68a403df6906b3c1a8f83@linaro.org>
Reviewed-by: Christophe Milard <99616a981fa4477cda708a70f78076761c0c9f1c@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

nmorey/odp,ravineet-singh/odp,dkrot/odp,nmorey/odp,erachmi/odp,dkrot/odp,ravineet-singh/odp,ravineet-singh/odp,erachmi/odp,ravineet-singh/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,nmorey/odp,nmorey/odp,erachmi/odp,dkrot/odp,erachmi/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,dkrot/odp