Improving possible race conditions and documenting properly everything related to the Thrift pool connection cache. Modified unit tests that didn't pass.