Adding thread-safe set strongly strongly based on Summerfields safemap code example