peer: add write timeout within writeMessage
peer: add write timeout within writeMessage

In this commit, we add a timeout within the writeMessage method when we go to write to the socket. We do this as otherwise, if the other peer is blocked for some reason, we'll never actually unblock ourselves, which may cause issues in other sub-systems waiting on this write call. For now, we use a value of 10 seconds, and will adjust in the future if we deem this time period too short. 
aakselrod/lnd,LightningNetwork/lnd,aakselrod/lnd,LightningNetwork/lnd