Refactor tsi1 write locking.
Refactor tsi1 write locking.

influxdb/influxdb,benbjohnson/influxdb,chenziliang/influxdb,influxdb/influxdb,vladlopes/influxdb,vladlopes/influxdb,mark-rushakoff/influxdb,vladlopes/influxdb,archsaber/influxdb,linearb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,benbjohnson/influxdb,archsaber/influxdb,mark-rushakoff/influxdb,vladlopes/influxdb,benbjohnson/influxdb,influxdata/influxdb,linearb/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,benbjohnson/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,runner-mei/influxdb,archsaber/influxdb,nooproblem/influxdb,nooproblem/influxdb,runner-mei/influxdb,influxdata/influxdb,chenziliang/influxdb,runner-mei/influxdb,chenziliang/influxdb,influxdb/influxdb,chenziliang/influxdb,linearb/influxdb,influxdb/influxdb,linearb/influxdb,li-ang/influxdb,runner-mei/influxdb,archsaber/influxdb,mark-rushakoff/influxdb,linearb/influxdb