All stratum calls to recv_line are serialised from the one place so there is no need to use locking around recv().