Switch to thread-safe Map in cstructs.