Use synchronous locks for `Peer` state

We hold these locks for a short amount of time anyway, and using an
async lock could cause parallel sends to happen in an order different
than the order in which `send`/`request` was called.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
9e4b118214Antonio Scandurra committed on 1/12/2022, 5:02:41 PMparent310def2
4 files changedLine totals unavailable