Implement pessimistic connection invalidation (MySQL only):

Check every connection that has been checked out from pool, and
invalidate it if it's stale.
Merge pull request #700 from 4teamwork/lg-pessimistic-connection-invalidation

Implement pessimistic connection invalidation (MySQL only)