Avoid more recursive locks.
Avoid applog under pool_lock.
Put spacing around locking code for clarity.
Avoid applog under cg_wlock.