TEIID-2401 adding explicit state locks for work