Add automatic maintenance lock on deployment.