Removes useless use of global

Also adds a second, synchronized pool read check to prevent a race condition
building the initial pool for a given db.