Stop leaking internal library pointers in error messages.

Requested by miod@
Improve RAND_write_file(), chmod crud, etc.
ok tedu
whitespace
Fix memory leak upon error in ssl_parse_clienthello_use_srtp_ext().
From BoringSSL.
not needed anymore
added handler for an atfork hook from kettenis@

ok deraadt@ beck@ kettenis@