Avoid deadlocks with the schema lock, if we don't already have it, we're
not supposed to need it, reference #1073.