4533: Lock all tables before deleting contents.
Merge branch '4533-lock-tables-first' refs #4533