proper locking to prevent close of closed channel crash when multiple mining peers compete
proper locking to prevent close of closed channel crash when multiple mining peers compete

maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum,maran/go-ethereum