htable: add a htable_prev method to oppose _next