Correction for https://github.com/ochafik/nativelibs4java/issues/534

Add standard map to avoid NullPointerException and a WeakReferenceMonitor from springframework to track a NativeObject and remove it from the map when garbaged.