add write lock around client protobuf stream

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotallabs.com>