Avoid more recursive locks.
Avoid applog under pool_lock.
Put spacing around locking code for clarity.
Avoid applog under cg_wlock.
Put spacing around locking in util.c for clarity.
Avoid applog under stratum_lock in __stratum_send.
Avoid applog under stratum_lock in recv_line.
Avoid applog in recalloc_sock.
Cleanup when stratum curl fails to initialise.