Fix: ht bucket index calculation

I would suggest using `R_FORCE_INLINE` here.