Make sure default session is taken from pool
Add missing thread_safe dependency