jni: better log message when loading libs, synchronize getParent() lazy loading