Protect txnReq.newEvents with mutex (#1587)
Protect txnReq.newEvents with mutex (#1587)

* Protect txnReq.newEvents and txnReq.haveEvents with mutex

* Missing defer

* Remove t.haveEventsMutex
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite