Multiple threads can enter the read lock and all store the new empty set to account_maps. Check again after taking write lock to make sure only one thread actually inserts the new entry.
Multiple threads can enter the read lock and all store the new empty set to account_maps. Check again after taking write lock to make sure only one thread actually inserts the new entry.