[MODULES-165] Cannot reliably iterate over Jar/FileResourceLoader

https://issues.jboss.org/browse/MODULES-165