POOL-211
Add a test case for logging the last used stack trace and fix a bug it highlighted.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/pool/trunk@1531382 13f79535-47bb-0310-9956-ffa450edef68