update with locks throughout goog.editor