fix sequential write locks in hub.go