Reuse IS_JAVA7 from PoolUtilities

Remove duplicate code from `ConcurrentBag`. The IS_JAVA7 field could perhaps be better placed in some generic utility class not related to PoolUtilities (in case one would want to use the ConcurrentBag outside this project), but I chose to leave that up to discussion.