SocketHandler, CAPMT: protect code with mutexes

Also remove unused mutex variable from SCCIAdapter.h