Fix long-kept table lock when provisioning new project.