Initial stab at multithreading this stuff, still some unsafe things going on
Continue with adding pthread support.

Adds rwlocks for store operations
Adds mutex lock for disconnected list
Add required stuff for safe usage of OpenSSL

Unrelated, increase traverse_buf if we fill it up.
Improve on multithreading.

- Add more sane locking on pools (since we dc from parent)
- Accept that if we do fatal() from anywhere, we exit.
- Remove some debug