Make the staleness threshold configurable

It is currently configurable if you use `ConnectionInPool` objects directly, but if you just want the abstraction provided by `PooledConnection`, you've got no way of configuring this value. This patch makes the value configurable for those using `PooledConnection` objects.