Add synchronisation of the MatlabServer methods

… hoping this will fix concurrent access problems

Remove matlabServer field from the MatlabClient class.