Make sure that we load and unload bridges properly
Make sure that we load and unload bridges properly

These changes ensure that we hold the lock while opening and closing payload and
messaging brdiges. Additionally, we store the shared library handles so we can
close them when cleaning up.

Signed-off-by: John Gray <160e368f6920b2a12076b14d9bbf683db7af0f1b@nyx.com>

philippreston/OpenMAMA,fquinner/OpenMAMA,dmaguire/OpenMAMA,MattMulhern/OpenMAMA,MattMulhern/OpenMAMA,MattMulhern/OpenMamaCassandra,MattMulhern/OpenMamaCassandra,jacobraj/MAMA,kuangtu/OpenMAMA,philippreston/OpenMAMA,vulcanft/openmama,jacobraj/MAMA,kuangtu/OpenMAMA,jacobraj/MAMA,dmagOM/OpenMAMA-dynamic,dpauls/OpenMAMA,MattMulhern/OpenMamaCassandra,MattMulhern/OpenMAMA,dpauls/OpenMAMA,dpauls/OpenMAMA,vulcanft/openmama,dpauls/OpenMAMA,kuangtu/OpenMAMA,MattMulhern/OpenMAMA,vulcanft/openmama,MattMulhern/OpenMAMA,philippreston/OpenMAMA,dmagOM/OpenMAMA-dynamic,cloudsmith-io/openmama,vulcanft/openmama,dmagOM/OpenMAMA-dynamic,dmaguire/OpenMAMA,philippreston/OpenMAMA,kuangtu/OpenMAMA,philippreston/OpenMAMA,cloudsmith-io/openmama,cloudsmith-io/openmama,dmaguire/OpenMAMA,dpauls/OpenMAMA,dpauls/OpenMAMA,cloudsmith-io/openmama,MattMulhern/OpenMAMA,fquinner/OpenMAMA,MattMulhern/OpenMamaCassandra,kuangtu/OpenMAMA,dmaguire/OpenMAMA,fquinner/OpenMAMA,cloudsmith-io/openmama,vulcanft/openmama,dmaguire/OpenMAMA,kuangtu/OpenMAMA,MattMulhern/OpenMamaCassandra,dmaguire/OpenMAMA,cloudsmith-io/openmama,dmaguire/OpenMAMA,dmagOM/OpenMAMA-dynamic,fquinner/OpenMAMA,cloudsmith-io/openmama,dmagOM/OpenMAMA-dynamic,jacobraj/MAMA,MattMulhern/OpenMAMA,kuangtu/OpenMAMA,vulcanft/openmama,philippreston/OpenMAMA,fquinner/OpenMAMA,jacobraj/MAMA,jacobraj/MAMA,philippreston/OpenMAMA,dpauls/OpenMAMA,MattMulhern/OpenMamaCassandra,dmagOM/OpenMAMA-dynamic,fquinner/OpenMAMA,fquinner/OpenMAMA,vulcanft/openmama