Following @aaime's comments

Instead of checking that the package can be resolved (the package takes
already care of calling System.loadLibrary()), checking into the system
classloader if the library is not already loaded before trying to call
System.loadLibrary()

Note: a similar fix has to be applied in imageIO-ext as well, to be
continued.