Remove all locks in matlab dlg.
Merge remote-tracking branch 'origin/master' into async_matlab

Conflicts:
	Common/MatlabDlg.cpp
Resolve conflict.