A thread-safe re-entrant resource pool for Ruby, extracted from the Riak Ruby Client.