BS-2483, fix class loading concurrency issue

we had some linkage error when using connectors on multi instance. e.g. with the email connector that does a load class when in a multi instance