Fixes the locking of the IdentityStoreConfiguration.