Getting lockstep to work. It turns out I had a misunderstanding about TCP streams.. that a 'send' does not correspond to a single 'recv'. I could probably fix other race conditions in the program with this knowledge