PLX-467: [performance] alternative solution using ThreadLocal

To compare and contrast with https://github.com/sonatype/plexus-classworlds/pull/6

Note: this code assumes the getResource/getResources methods are not reentrant.