There's a deadlock when ssleay_rand_bytes is called the first time, since