bitcoin/bitcoin — pull request #4795 by jgarzik (2014-08-30 18:10:04+00:00)
Title: Hold cs_main in SendMessages() for shorter period of time.

Much runtime under cs_main seemed unneeded here.

cs_main is a highly contended lock that is held for a long time.

Let's not merge without careful review & testing...