Mac's SSL seems to have a pthread_atfork handler or similar that does this for us, no clue if Linux is the same.