Fixes #634: Clears git locks when the deployment lock is acquired.