clock_gettime() requires librt
overwrite the key when replacing an entry

When using ht_table_insert2(), the old key being returned can still be used in
the table which can be a problem if we free it.