lock OS thread when changing FIPS mode
lock OS thread when changing FIPS mode

Based on a PR comment here: https://github.com/spacemonkeygo/openssl/pull/42

xakep666/openssl,spacemonkeygo/openssl,xakep666/openssl,10gen/openssl,spacemonkeygo/openssl,10gen/openssl