Push down cs_main locking in ProcessMessage

Conflicts:
	src/main.cpp