hashtable: rename ensureptr() to get_safe_ptr()