clean up new code for NIST primes

create new lock CRYPTO_LOCK_BN to avoid race condition
11 files changed