Implement a write lock on sending a line