Move the rand_nonce_lock code into drbg_lib.c