htable: use mode everywhere to control the locks for add operation
htable: make locking to access a slot re-entrant for a process

- proper functionality for sht_lock()/sht_unlock()
htable: elaborated docs about sht_lock() and sht_unlock()