Mark as loaded BEFORE loading to prevent recursive loading.

When load method is called by usb4java-javax then the loading of the
JNI library (Triggered by the load method) triggers the load method
again. This results in a crash. Setting the loaded flag before loading
the JNI lib prevents this.