[tor-commits] [tor/master] Add a helper function to decrement read and write at the same time