btr: Rename btr_bytes_pending() and make it public.