Fixed classloading on OSGi and other multi classloader environments

Fixed classloading with wrong classloader in ClassDefinition and Hazelcast (internal) types from other bundle classloaders.