Fix weird loop in connection.c
assert(pool->active == pool->num) if we can't find any free connections
Formatting in threads.c