Adding locking to the making of a store