Tighter synchronization so that stress tests pass on JRuby
Tighter synchronization so that stress tests pass on JRuby

Writing to the socket has to be synchronized because a frame
is an interleaving unit in the wire protcol. Per discussion
with the RabbitMQ team.

teodor-pripoae/bunny,jafrog/bunny,teodor-pripoae/bunny,wconrad/bunny,bartj3/bunny,gferguson-gd/bunny,bartj3/bunny,pressrelations/bunny,0xfaded/bunny,jafrog/bunny,gferguson-gd/bunny,wconrad/bunny,0xfaded/bunny,pressrelations/bunny