Tidal Heating and Mass Loss in Neutron Star Binaries: Implications for Gamma-Ray Burst Models