[tor-commits] [tor/master] Make buf_datalen() mockable