FAIMS-529 - fix the vocabulary structure when database is locked