Fix for OpenJDK weak references for loggers