Reentrant set lib based on threadsafe hashtable